package com.mt.api.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mt.api.modules.domain.AppOrderDetail;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: plover
 * @Date: 2020/07/07/4:37 下午
 * @Description:
 */
public interface AppOrderDetailMapper extends BaseMapper<AppOrderDetail> {

    int plusOutStoreQty(@Param("id") Integer id, @Param("qty") Integer qty);

    int subtractOutStoreQty(@Param("id") Integer id, @Param("qty") Integer qty);

    int getSalesQtyByCargoId(@Param("cargoId") Integer cargoId);

}
